package ${packagePrefix}.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import ${packagePrefix}.dao.${table.javaName}Dao;
import ${packagePrefix}.domain.${table.javaName};
import ${packagePrefix}.service.${table.javaName}Service;

/**
 * @author Wu,Yang
 * @version ${generatorTime}
 */
@Service
public class ${table.javaName}ServiceImpl implements ${table.javaName}Service {

	@Resource
	private ${table.javaName}Dao ${table.variableName}Dao;
	

	public Long create${table.javaName}(${table.javaName} t) {
		return this.${table.variableName}Dao.insertEntity(t);
	}

	public ${table.javaName} get${table.javaName}(${table.javaName} t) {
		return this.${table.variableName}Dao.selectEntity(t);
	}

	public Long get${table.javaName}Count(${table.javaName} t) {
		return this.${table.variableName}Dao.selectEntityCount(t);
	}

	public List<${table.javaName}> get${table.javaName}List(${table.javaName} t) {
		return this.${table.variableName}Dao.selectEntityList(t);
	}

	public int modify${table.javaName}(${table.javaName} t) {
		return this.${table.variableName}Dao.updateEntity(t);
	}

	public int remove${table.javaName}(${table.javaName} t) {
		return this.${table.variableName}Dao.deleteEntity(t);
	}

	public List<${table.javaName}> get${table.javaName}PaginatedList(${table.javaName} t) {
		return this.${table.variableName}Dao.selectEntityPaginatedList(t);
	}

}
